<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <head>
<!--
Copyright 2008 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
    <title>Hello Google Earth!</title>
    <!-- *** Replace the key below below with your own API key, available at http://code.google.com/apis/maps/signup.html *** -->
    <script src="http://www.google.com/jsapi?key=ABQIAAAAwbkbZLyhsmTCWXbTcjbgbRSzHs7K5SvaUdm8ua-Xxy_-2dYwMxQMhnagaawTo7L1FE1-amhuQxIlXw"></script>
        <link rel="stylesheet" type="text/css" href="js/extjs22/resources/css/ext-all.css">

    <!-- GC -->
    <!-- LIBS -->
    <script type="text/javascript" src="js/extjs22/adapter/ext/ext-base.js"></script>
    <!-- ENDLIBS -->

    <script type="text/javascript" src="js/extjs22/ext-all.js"></script>

    <script type="text/javascript" src="SliderTip.js"></script>
    <script type="text/javascript" src="slider.js"></script>
    <link rel="stylesheet" type="text/css" href="slider.css">

    <!-- Common Styles for the examples -->
    <link rel="stylesheet" type="text/css" href="../shared/examples.css">

    <script>
google.load("earth", "1");

var ge = null;

var currentEarthWidth = 800;

function init() {
  google.earth.createInstance("map3d", initCallback, failureCallback);
}

function initCallback(object) {
  ge = object;
  ge.getWindow().setVisibility(true);
}

function failureCallback(object) {
}

function changeEarthSize() {
var div = document.getElementById("map3d_container");
div.style.width = "300px";
}
    </script>

  </head>
  <body onload='init()' id='body'>
    <center>
      <div>
        Hello, Earth!
      </div>

      <div id='map3d_container'
           style='border: 3px solid silver; height: 500px; width: 800px;'>
        <div id='map3d' style='height: 100%;'></div>
      </div>
<h3>Slider with custom tip</h3>
<div id="custom-tip-slider"></div>
<br/>
      <input type="button" value="change size" onclick="changeEarthSize();"></input>

    </center>
  </body>
</html>
